package com.nulstudio.sppm.Service;

import com.nulstudio.sppm.Dao.IssueInvoiceMapper;
import com.nulstudio.sppm.Entities.IssueInvoice;
import org.aspectj.bridge.ICommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IssueInvoiceService {
   @Autowired
    private IssueInvoiceMapper mapper;
   public int createEntry(IssueInvoice issueInvoice){
       return mapper.createEntry(issueInvoice);
   }
   public int getLastId(){
       return mapper.getLastId();
   }
   public int deleteWarehouse(int id){
       return mapper.deleteWarehouse(id);
   }
   public IssueInvoice getInvoiceById(int id){
       return mapper.getInvoiceById(id);
   }
   public int setCommitted(int id,Boolean committed){
       return mapper.setCommitted(id,committed);
   }
}
